diff options
| author | Adam Soltys <[email protected]> | 2022-12-21 15:48:14 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-12-21 15:48:14 -0800 |
| commit | 6ae27be919808df935fb140fd56bb6ae010a219b (patch) | |
| tree | ba9f5d862cc48abf5b49acfdbd32b87216eadba1 /src/routes/(app)/[username]/+server.js | |
| parent | 5c0675fa6815a70033c17a9310d0fa1f9c569e92 (diff) | |
| download | coinos-ui-6ae27be919808df935fb140fd56bb6ae010a219b.tar.gz coinos-ui-6ae27be919808df935fb140fd56bb6ae010a219b.zip | |
add nostr message field to user profile page
Diffstat (limited to 'src/routes/(app)/[username]/+server.js')
| -rw-r--r-- | src/routes/(app)/[username]/+server.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/routes/(app)/[username]/+server.js b/src/routes/(app)/[username]/+server.js new file mode 100644 index 00000000..d0b1242f --- /dev/null +++ b/src/routes/(app)/[username]/+server.js @@ -0,0 +1,6 @@ +import { auth, post } from '$lib/utils'; +import { json } from '@sveltejs/kit'; + +export async function POST({ cookies, request }) { + return json(post('/nostr/send', await request.json(), auth(cookies))); +} |
